home *** CD-ROM | disk | FTP | other *** search
- Path: chronicle.mti.sgi.com!austern
- From: b91926@fsgi01.fnal.gov (David Sachs)
- Newsgroups: comp.std.c++
- Subject: Re: Placement delete suggestion Keywords: delete placement
- Date: 27 Mar 1996 15:39:36 PST
- Organization: FERMILAB, Batavia, IL
- Approved: austern@isolde.mti.sgi.com
- Message-ID: <4j9rej$1jb@fsgi01.fnal.gov>
- References: <4j4ec5$d41@fsgi01.fnal.gov> <9603261124.AA22276@lts.sel.alcatel.de>
- Reply-To: sachs@fnal.fnal.gov
- NNTP-Posting-Host: isolde.mti.sgi.com
- X-Original-Date: 26 Mar 1996 16:34:59 -0600
- X-Newsreader: NN version 6.5.0 #9 (NOV)
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBVAwUBMVnRuUy4NqrwXLNJAQE/igH+LVvssQyJO5AZvb+9T5m0bYdVxmsYlR6p
- duEsCmk0Sgo0krL466EOMVthJVx77WE/bJci+6eSBuMJ5oKajKO4Uw==
- =BHe/
- Originator: austern@isolde.mti.sgi.com
-
- James Kanze US/ESC 60/3/141 #40763 <kanze@lts.sel.alcatel.de> writes:
- ...
-
- >Is the expression: delete (*pf)( p ) placement delete or not? (The
- >variable pf has type `T* (*)( T* )', and p type T*.) If not, why not?
- >If so, how can I remove the ambiguity (by adding parentheses or
- >otherwise)?
- If my idea were adapted, the example you gave would be treated as a
- placement delete. It could be disambiguated by adding a pair of
- parentheses to make it:
-
- delete ((*pf)( p ))
-
- In extremely complex cases you might even need
-
- (delete ((*pf)( p )))
- --
- ***** Listen Americans, the IRS is your taxer, the IRS is one. *****
- David Sachs - Fermilab, HPPC MS369 - P. O. Box 500 - Batavia, IL 60510
- Voice: 1 708 840 3942 Deparment Fax: 1 708 840 3785
- ---
- [ comp.std.c++ is moderated. To submit articles: Try just posting with your
- newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
- comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
- Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
- Comments? mailto:std-c++-request@ncar.ucar.edu
- ]
-